<md-toolbar color="amber">
  <button id="icon" md-icon-button>
    <md-icon>
      <img src="assets/shishi.jpg" alt="">
    </md-icon>
  </button>
  <span>狮狮</span>
  <span class="fill-remaining-space"></span>
  <!--<md-slide-toggle (change)="onChange($event)">黑夜模式</md-slide-toggle>-->
  <div class="menu">
    <button md-button>
      <md-icon>home</md-icon>
      <span>主站</span>
    </button>
    <button md-button>
      <md-icon>add</md-icon>
      <span>加入我们</span>
    </button>
    <button md-button [mdMenuTriggerFor]="editMenu">
      <md-icon>edit</md-icon>
      <span>发布</span>
    </button>
  </div>
  <div class="sign">
    <button md-button>
      <a href="/register">注册</a>
    </button>
    |
    <button md-button>
      <a href="/login">登录</a>
    </button>
  </div>
</md-toolbar>

<md-menu #editMenu="mdMenu">
  <button md-menu-item (click)="LinkPublish('article')">
    <md-icon>add</md-icon>
    <span>发布文章</span>
  </button>
  <button md-menu-item (click)="LinkPublish('topic')">
    <md-icon>add</md-icon>
    <span>发布话题</span>
  </button>
</md-menu>
